

export class MapNode {

    protected _parent: MapNode = null;

    protected _mapID: number = 0;

    protected _g: number = 0;

    protected _h: number = 0;

    constructor(id: number) {
        this._mapID = id;
    }

    set g(v: number) {
        this._g = v;
    }

    get g() {
        return this._g;
    }

    set h(v: number) {
        this._h = v;
    }

    get h() {
        return this._h;
    }

    set parent(v: MapNode) {
        this._parent = v;
    }

    get parent() {
        return this._parent;
    }

    get mapID() {
        return this._mapID
    }

    get F() {
        return this._g + this._h
    }


}
